package cn.itsource.ymcc.openfeign;

import cn.itsource.ymcc.openfeign.fallbackfactory.MediaOpenFeignFallbackFactory;
import cn.itsource.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-media",fallbackFactory = MediaOpenFeignFallbackFactory.class )
public interface MediaOpenFeign {
    @GetMapping("/mediaFile/mediaFileByCourseId/{id}")
    public JsonResult mediaFileByCourseId(@PathVariable("id")Long courseId);
}
